<%@page import="oocl.eshop.po.Food"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="css/index.css" rel="stylesheet" type="text/css">
</head>
<body>
	<%
		Object merchant = session.getAttribute("merchant");
	%>
	<%
	  String thisfViewPath = request.getParameter("thisfViewPath");
	  String thisfName = request.getParameter("thisfName");
	  String thisfPrice = request.getParameter("thisfPrice");
	  String thisfId = request.getParameter("thisfId");
	 %>

	<nav class="navbar navbar-inverse navbar-fixed-top">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed"
				data-toggle="collapse" data-target="#navbar" aria-expanded="false"
				aria-controls="navbar">
				<span class="sr-only">Toggle navigation</span> <span
					class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="showHomePage">商家平台</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
		<ul class="nav navbar-nav navbar-right">
				<li><a href="logout">注销</a></li>
			</ul>
			<form class="navbar-form navbar-right">
				//search <input type="text" class="form-control"
					placeholder="Search...">
			</form>
		</div>
	</div>
	</nav>
	<div class="container contentMin">
		<div class="row">
			<div class="col-md-12">
				<div class="row">
					<!-- 导航 -->
					<div class="col-xs-8 col-sm-3 left-content sidebar-offcanvas"
						id="sidebar">
						<div class="list-group">
							<a href="showHomePage"
								class="list-group-item">商家信息</a> 
								<a href="showFoodPage" class="list-group-item active">菜品管理</a>
						</div>
					</div>
					<!--/.sidebar-offcanvas-->
					<div class="col-xs-8 col-sm-9 col-md-offset-4 right-content">
						<h1>菜品管理<span class="title">—修改菜品信息</span><span class="error title">${Error} </span></h1>
						<hr size="100%">
						<div class="col-md-8 col-sm-3">
							
							<form action="updateFood" method="post" enctype="multipart/form-data">
								<div class="modal-body">
									<div class="form-group">
										<label>菜品名</label> <input type="text" class="form-control"
											placeholder="菜品名" value="<%=thisfName %>" name="fName">
									</div>
									<div class="form-group">
										<label>价格</label> <input type="text" class="form-control"
											placeholder="价格" value="<%=thisfPrice  %>" name="fPrice">
									</div>
									<div class="form-group">
										<label>菜品图片</label> <img src="<%=thisfViewPath %>" width="150"
											height="150"> <input type="file" id="inputfile"
											class="btn-primary" placeholder="菜品图片" name="fViewPath">
											<input type="text" value="<%=thisfId %>" style="display:none" name="fId">
									</div>
								</div>
								<a type="button" class="btn btn-default"
									data-dismiss="modal" href="menuPage.jsp">返回</a>
								<button type="submit" class="btn btn-primary editAccount">提交</button>
							</form>
						</div>

					</div>
				</div>
			</div>
		</div>
	</div>


</body>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</html>